Repository navigation
fix(aggregator): suppress projectedPercentAtReset for negative pct (#6316) - #8070
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 13 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Fixes #6316
projectPaceinpm-stack/aggregator/src/derive.tsguardedprojectedExhaustionAtagainst out-of-domain (negative) pct values (#2346) but still computedprojectedPercentAtResetwhenever the last record carried a futureresetsAt— rendering absurd values (e.g. -999999995.5) for poisoned series.lastVal >= 0domain check; slope/points are still reported.resetsAton the last record now asserts both projection fields are null, retaining slope 0.5 and points 2. In-domain control (projectedPercentAtReset = 80) unchanged.Tests (oracle: issue #6316 acceptance criteria):
bun test test/usage.test.ts— 49 pass, 0 fail.bun run typecheck— 8 errors, byte-identical set on clean main (pre-existing, none in the touched files; verified by stash comparison).Queue task 11414, implementation lane code-v; PR created on resume by lane code-f (outbox OB-2026-11-09-T11414V1803-PR).
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.